from redis import StrictRedis

class Config():
    DEBUG = None
    SESSION_TYPE ='redis'
    SESSION_REDIS = StrictRedis(host='192.168.126.137',port=6379)
    SESSION_USE_SINGER = True
    PERMANENT_SESSION_LIFETIME = 86400
    SECRET_KEY = 'jGRlg6EJNmhH0cpbQRKXDhj9cFmlu6RVpUb1YEq5iFE='

    SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@localhost/dbProject'
    SQLALCHEMY_TRACK_MODIFICATIONS = True

class DevelopmentConfig(Config):
    DEBUG = True

class ProductConfig(Config):
    DEBUG = False

dict_config ={
    'development':DevelopmentConfig,
    'production':ProductConfig
}